<script setup>
import { useDebouncedRef } from './utils/myref'
// 防抖，输入到停止才会出现
const text = useDebouncedRef('hello')
</script>

<template>
    <h1>{{ text }}</h1>
    <input v-model="text" />
</template>